<!DOCTYPE>
<html>
<head>
<#include "../include/base.ftl">
<title>个人信息 - 设置</title>
<#include "../include/css.ftl">
<link href="/css/space.css" rel="stylesheet" type="text/css">
<script src="/script/jquery-1.7.1.js"></script>
</head>
<body>

<#include "../include/top.ftl">
<div align="center" MAIN>
	<div>


<div TITLE>设置</div>

<div class="setting_tab_div">
	<a href="/setting/info">个人信息</a>
	<a href="/setting/pass">账户安全</a>
</div>

<div align="left" class="setting_context_div">
	<input type="email" class="setting_input" value="${LOGIN_USER.email}" disabled>：EMAIL<br>
	<input type="test" class="setting_input" value="${LOGIN_USER.ctime}" disabled>：注册时间<br>
<#if INFO??>
	<input type="test" name="truename" class="setting_input" value="${INFO.truename!}" >：真实姓名<br>
	<input type="test" name="website" class="setting_input" value="${INFO.website!}" >：个人网站<br>
	<input type="test" name="introduce" class="setting_input" value="${INFO.introduce!}" >：自我介绍<br>
	<input type="test" name="area" class="setting_input" value="${INFO.area!}" >：来自<br>
	<input type="test" name="vocation" class="setting_input" value="${INFO.vocation!}" >：职业<br>
	<input type="test" name="industry" class="setting_input" value="${INFO.industry!}" >：行业<br>
	<#--<input type="number" name="work_seniority" class="setting_input" value="0" value="${INFO.work_seniority!}" >：工作年限<br>-->
	<input type="test" name="birth_date" class="setting_input" value="${INFO.birth_date!}" >：出生年月<br>
	<input type="test" name="qq" class="setting_input" value="${INFO.qq!}" >：QQ<br>
	<input type="test" name="msn" class="setting_input" value="${INFO.msn!}" >：MSN<br>
<#else>
	<input type="test" name="truename" class="setting_input" >：真实姓名<br>
	<input type="test" name="website" class="setting_input" >：个人网站<br>
	<input type="test" name="introduce" class="setting_input"  >：自我介绍<br>
	<input type="test" name="area" class="setting_input" >：来自<br>
	<input type="test" name="vocation" class="setting_input" >：职业<br>
	<input type="test" name="industry" class="setting_input" >：行业<br>
	<#--<input type="number" name="work_seniority" class="setting_input" value="0" >：工作年限<br>-->
	<input type="test" name="birth_date" class="setting_input" >：出生年月<br>
	<input type="test" name="qq" class="setting_input" >：QQ<br>
	<input type="test" name="msn" class="setting_input" >：MSN<br>
</#if>
	<input type="submit" class="setting_btn" value="保存修改" setting="info">
</div>


    </div>
</div>
<#include "../include/footer.ftl">

<script>

$("input[type='submit']").click(function(){
	var truename = $("input[name='truename']").val();
	var website = $("input[name='website']").val();
	var introduce = $("input[name='introduce']").val();
	var area = $("input[name='area']").val();
	var vocation = $("input[name='vocation']").val();
	var industry = $("input[name='industry']").val();
	var work_seniority = $("input[name='work_seniority']").val();
	var birth_date = $("input[name='birth_date']").val();
	var qq = $("input[name='qq']").val();
	var msn = $("input[name='msn']").val();
	
	var date = {
		truename:truename, 
		website:website, 
		introduce:introduce, 
		area:area, 
		vocation:vocation, 
		industry:industry, 
		// work_seniority:work_seniority, 
		birth_date:birth_date,
		qq:qq, 
		msn:msn };
	
	$.post("/setting/info", date, function(res){
		alert(res.message);
	});
	
});

</script>

</body>
</html>